﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PlaceInsert.aspx.cs" Inherits="Pages_PlaceInsert" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 166px;
        }
        .style3
        {
            width: 166px;
            height: 30px;
        }
        .style4
        {
            height: 30px;
        }
        .style5
        {
            height: 26px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td colspan="2">
                    <asp:HyperLink ID="hlAdd" runat="server" 
                        NavigateUrl="~/Pages/PlaceMain.aspx">Listar Locais.</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style5">
                    <asp:Label runat="server" Text="Estado" ID="Label6"></asp:Label>
                </td>
                <td class="style5">
                    <asp:DropDownList ID="ddlState" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlState_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" Text="Cidade" ID="Label2"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label runat="server" Text="CEP" ID="Label1"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txbZip" runat="server" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv1" runat="server" 
                        ControlToValidate="txbZip" ErrorMessage="Preencha o CEP.">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label runat="server" Text="Endereço" ID="Label3"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txbAddress" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv" runat="server" 
                        ControlToValidate="txbAddress" ErrorMessage="Preencha o endereço." 
                        EnableTheming="True">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    <asp:Label runat="server" Text="Complemento" ID="Label4"></asp:Label>
                </td>
                <td class="style4">
                    <asp:TextBox ID="txbComplement" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label runat="server" Text="Número" ID="Label5"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txbNumber" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv3" runat="server" 
                        ControlToValidate="txbNumber" ErrorMessage="Preencha o número.">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnInsert" runat="server" onclick="btnInsert_Click" 
                        Text="Cadastrar" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2">
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
